package Controller_Command_21.commands;

import Controller_Command_21.Command;
import Controller_Command_21.Furniture.Fan;

public class FanCommand implements Command {
    private final Fan fan = new Fan();

    @Override
    public void execute() {
        System.out.println("风扇正在启动...");
        fan.turnOn();
    }

    @Override
    public void undo() {
        System.out.println("风扇正在关闭...");
        fan.turnOff();
    }
}
